
header {
    grid-area: header;
    display: flex;
    align-items: center;
    background-color: #F7F9E5DE;
    border-radius: 3vw;
    margin: 1vw;
    padding: 0;
}

header img {
    max-width: clamp(40px, 9vw, 130px);
    padding: 1vw;
    padding-left:2.5vw;
}

header h1 {
    padding: 0;
    margin: 2vw 2vw;
    margin-top: 3vw;
    font-size: clamp(13px, 4vw, 40px);
}

body {
    background-image: url("../assets/img/Background.png");
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    margin-left: auto;
    margin-right: 1.5em;
}

nav ul {
    display: flex;
    align-items: center;
}

nav li {
    font-size: 1.3rem;
    font-weight: 600; 
    font-family: Poppins;
    color: #00000000;
    position: relative;
    padding: 0.8em;
}

nav a{
    text-decoration: none;
    color: #ff8091;
}

main {
    flex: 1;
    padding: 0;
}

footer {
    margin-top: auto;
    background-color: #ff8091;
}

footer p {
    padding: 0.2vw 5vw ;
    font-size: clamp(10px, 2.5vw, 20px);
}

.dropdown-menu {
    position: absolute;
    display: none;
    visibility: hidden;
     background-color: #F4F4F4DE;
    border-radius: 1rem;
}


.dropdown:hover .dropdown-menu {
    display: block;
    visibility: visible;
    padding: 0.4em 0.5em 0.5em 0.5em;
    margin-left: -0.5em;
}


.dropdown-option {
    padding: 0.1em;
}

h2 {
    color: #ff8091;
    font-family: 'Oi', sans-serif;
    font-weight: 400;
    font-size: 2rem;
}

h1 {
    font-size: 3rem;
    color: #ff8091;
    font-family: 'Oi', sans-serif;
    font-weight: 400;
}

p {
    color: #040018dd;
    font-family: Poppins;
    font-size: 1rem;
}

label {
    color: #ff8091;
    font-family: Poppins;
    font-weight: 700;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3vw;
    margin: 3vw;
    margin-top: 1.5vw;
}

@media (max-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

.project {
    position: relative;
    width: 100%;
    aspect-ratio: 17 / 9;
    overflow: hidden;
    border-radius: 0.7rem;
    border: none;
    padding: 0px;
}

.project img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 25px;
    text-align: center;

    background: #040018dd;

    opacity: 0;
    transition: opacity 0.35s ease;
}

.project:hover img,
.project:focus-visible img {
    transform: scale(1.08);
}

.project:hover .project-overlay,
.project:focus-visible .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    color: #ff8091;
    font-family: Poppins;
    font-size: clamp(13px, 2.2vw, 22px);
    margin-top: 1vw;
    margin-bottom: 0.8vw;
}

.project-overlay p {
    color: white;
    font-family: Poppins;
    font-size: clamp(12px, 2vw, 20px);
    margin-bottom: 1vw;
    margin-top: 0;
}

/* Video popup */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px;

    background: #040018e5;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease,
                visibility 0.3s ease;
}

/* Visible popup */

.video-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Video content */

.video-container {
    width: 100%;
    max-width: 1100px;
    max-height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container h2 {
    margin: 0 0 20px;
    text-align: center;
}


/* Video player */

.video-container video {
    display: block;

    width: 100%;
    max-height: 75vh;

    object-fit: contain;
    background: black;
}


/* Close button */

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;

    border: none;
    background: none;
    color: white;

    font-size: 45px;
    line-height: 1;
    cursor: pointer;
}

.close-modal:hover {
    color: #ccc;
}

.close-modal:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}
